import 'package:get/get.dart';
import '../routes/app_routes.dart';

class NavigationController extends GetxController {
  var currentIndex = 0.obs;
  
  final List<String> routes = [
    AppRoutes.home,
    AppRoutes.wallet,
    AppRoutes.help,
  ];
  
  void changePage(int index) {
    if (index >= 0 && index < routes.length) {
      currentIndex.value = index;
      Get.toNamed(routes[index]);
    }
  }
  
  void setCurrentIndex(int index) {
    currentIndex.value = index;
  }
}